package com.cy.ppj.service.mall;

import com.cy.ppj.model.PageBean;
import com.cy.ppj.model.domian.mall.GoodsCategory;
import com.cy.ppj.model.query.mall.GoodsCategoryAdminListQuery;
import com.cy.ppj.model.vo.mall.GoodsCategoryAdminListVO;

import java.util.List;

/**
 * @Description 商品类别 service
 * @Author tanyilin
 * @Date 2019/7/3 11:56
 */
public interface GoodsCategoryService {

    /**
     * 后台-分页查询商品类别列表
     * @param query
     * @return com.cy.ppj.model.PageBean<com.cy.ppj.model.vo.mall.GoodsCategoryAdminListVO>
     */
    PageBean<GoodsCategoryAdminListVO> getGoodsCategoryAdminList(GoodsCategoryAdminListQuery query);

    /**
     * 新增商品类别
     * @param insertGoodsCategory
     * @return void
     */
    void addGoodsCategory(GoodsCategory insertGoodsCategory);

    /**
     * 更新商品类别
     * @param updateGoodsCategory
     * @return void
     */
    void updateGoodsCategory(GoodsCategory updateGoodsCategory);

    /**
     * 查询全部的商品类别列表，不分页
     * @param
     * @return java.util.List<com.cy.ppj.model.domian.mall.GoodsCategory>
     */
    List<GoodsCategory> getAllGoodsCategoryList();
}
